package br.com.petrobrasrj.dao;

import java.io.Serializable;
import java.util.List;

import javax.persistence.EntityManager;

public interface IGenericDao<T> extends Serializable{

	public abstract void setEm(EntityManager em);

	public abstract void delete(T objeto) ;

	public abstract T insert(T objeto);

	public abstract T update(T t);
	
	public abstract T findById(Class<T> modelClass, Object id);
	
	public abstract List<T> findAll(Class<T> modelClass);
}